/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_employee")
//@NamedQueries({@NamedQuery(name = "TEmployee.findAll", query = "SELECT t FROM TEmployee t"), @NamedQuery(name = "TEmployee.findByEmployeeId", query = "SELECT t FROM TEmployee t WHERE t.employeeId = :employeeId"), @NamedQuery(name = "TEmployee.findBySpCode", query = "SELECT t FROM TEmployee t WHERE t.spCode = :spCode"), @NamedQuery(name = "TEmployee.findByEmployeeName", query = "SELECT t FROM TEmployee t WHERE t.employeeName = :employeeName"), @NamedQuery(name = "TEmployee.findByEmployeePhone", query = "SELECT t FROM TEmployee t WHERE t.employeePhone = :employeePhone"), @NamedQuery(name = "TEmployee.findByEmployeeEmail", query = "SELECT t FROM TEmployee t WHERE t.employeeEmail = :employeeEmail"), @NamedQuery(name = "TEmployee.findByGroupLeader", query = "SELECT t FROM TEmployee t WHERE t.groupLeader = :groupLeader")})
public class TEmployee implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "employee_id")
    private String employeeId;
    @Column(name = "sp_code")
    private String spCode;
    @Column(name = "employee_name")
    private String employeeName;
    @Column(name = "employee_phone")
    private String employeePhone;
    @Column(name = "employee_email")
    private String employeeEmail;
    @Column(name = "group_leader")
    private String groupLeader;
    @Column(name = "job")
    private String job;
    @Column(name = "info")
    private String info;
    
    public TEmployee() {
    }

    public TEmployee(String employeeId) {
        this.employeeId = employeeId;
    }

    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public String getSpCode() {
        return spCode;
    }

    public void setSpCode(String spCode) {
        this.spCode = spCode;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public String getEmployeePhone() {
        return employeePhone;
    }

    public void setEmployeePhone(String employeePhone) {
        this.employeePhone = employeePhone;
    }

    public String getEmployeeEmail() {
        return employeeEmail;
    }

    public void setEmployeeEmail(String employeeEmail) {
        this.employeeEmail = employeeEmail;
    }

    public String getGroupLeader() {
        return groupLeader;
    }

    public void setGroupLeader(String groupLeader) {
        this.groupLeader = groupLeader;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (employeeId != null ? employeeId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TEmployee)) {
            return false;
        }
        TEmployee other = (TEmployee) object;
        if ((this.employeeId == null && other.employeeId != null) || (this.employeeId != null && !this.employeeId.equals(other.employeeId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TEmployee[employeeId=" + employeeId + "]";
    }

	/**
	 * job
	 *
	 * @return  the job
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getJob() {
		return job;
	}

	/**
	 * @param job the job to set
	 */
	public void setJob(String job) {
		this.job = job;
	}

	/**
	 * info
	 *
	 * @return  the info
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getInfo() {
		return info;
	}

	/**
	 * @param info the info to set
	 */
	public void setInfo(String info) {
		this.info = info;
	}

}
